package Demo1;

import java.net.DatagramSocket;
import java.net.SocketException;
import java.util.Scanner;

public class SendMessage {
    public static void main(String[] args) throws SocketException {
        /*
        * UDP发送数据: 键盘录入数据 直到数据为886 停止发送
        * UDP接收数据: 接收端不知道何时结束 因此采用死循环接收
        */

        DatagramSocket datagramSocket = new DatagramSocket();

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入您要说的话: ");
        String s = scanner.nextLine();
    }
}
